Skip to content

chore: ship src alongside dist, so a ts-jest consumer can compile the source - #20

Merged
catomean merged 1 commit into
mainfrom
chore/ship-src
Aug 29, 2026
Merged

chore: ship src alongside dist, so a ts-jest consumer can compile the source#20
catomean merged 1 commit into
mainfrom
chore/ship-src

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

OrangeCat's jest config documents the trap in its own words: its ts-jest
transform compiles only .ts/.tsx, so 'an ESM-only .js dependency cannot be
whitelisted into working via transformIgnorePatterns alone' — the failure
class that broke AOZ's Jest run inside ai-forms in v0.3. Shipping src lets
such a consumer map the subpath to the TS source and compile it like local
code, while every runtime consumer keeps resolving dist through the exports
map, which is unchanged.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

… source

OrangeCat's jest config documents the trap in its own words: its ts-jest
transform compiles only .ts/.tsx, so 'an ESM-only .js dependency cannot be
whitelisted into working via transformIgnorePatterns alone' — the failure
class that broke AOZ's Jest run inside ai-forms in v0.3. Shipping src lets
such a consumer map the subpath to the TS source and compile it like local
code, while every runtime consumer keeps resolving dist through the exports
map, which is unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
@catomean
catomean merged commit 44aa4dd into main Aug 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant